
package com.food.mall.service;

import com.food.mall.controller.vo.FoodMallShoppingCartItemVO;
import com.food.mall.entity.FoodMallShoppingCartItem;

import java.util.List;

public interface FoodMallShoppingCartService {

    /**
     * 保存商品至购物车中
     *
     * @param foodMallShoppingCartItem
     * @return
     */
    String saveFoodMallCartItem(FoodMallShoppingCartItem foodMallShoppingCartItem);

    /**
     * 修改购物车中的属性
     *
     * @param foodMallShoppingCartItem
     * @return
     */
    String updateFoodMallCartItem(FoodMallShoppingCartItem foodMallShoppingCartItem);

    /**
     * 获取购物项详情
     *
     * @param foodMallShoppingCartItemId
     * @return
     */
    FoodMallShoppingCartItem getFoodMallCartItemById(Long foodMallShoppingCartItemId);

    /**
     * 删除购物车中的商品
     *
     *
     * @param shoppingCartItemId
     * @param userId
     * @return
     */
    Boolean deleteById(Long shoppingCartItemId, Long userId);

    /**
     * 获取我的购物车中的列表数据
     *
     * @param foodMallUserId
     * @return
     */
    List<FoodMallShoppingCartItemVO> getMyShoppingCartItems(Long foodMallUserId);
}
